-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Giving day] fixed navbar selected item underline bug #868
Conversation
[diff-counting] Significant lines: 10. |
@@ -141,7 +138,8 @@ const Navbar: React.FC = () => { | |||
? 'bg-gradient-to-r from-[#F25454] to-[#D63D3D] bg-clip-text text-transparent' | |||
: 'text-white' | |||
} | |||
${item.name === 'Apply' ? '!text-[#000000]' : ''} | |||
${pathname === item.url ? 'underline' : ''} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to add it on the <span>
so it applies to the text label instead of on the parent <a>
@@ -141,7 +138,8 @@ const Navbar: React.FC = () => { | |||
? 'bg-gradient-to-r from-[#F25454] to-[#D63D3D] bg-clip-text text-transparent' | |||
: 'text-white' | |||
} | |||
${item.name === 'Apply' ? '!text-[#000000]' : ''} | |||
${pathname === item.url ? 'underline' : ''} | |||
${item.name === 'Apply' ? '!text-[#000000] no-underline' : ''} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
override underline on buttons (we shouldn't show an underline)
i notice the navbar didn't show an underline under the currently selected page. this is probably a regression from my PR here